/*
 * @Author: 许旺玉
 * @Date: 2020-07-07 15:12:02
 * @LastEditTime: 2020-07-07 15:14:43
 * @LastEditors: Please set LastEditors
 * @Description: 封装get和post请求
 * @FilePath: \jingkaisystem\src\utlis\request.js
 */
import httpRequest from "@/api/apiConfig.js"

export function ajaxGet(url, params) {  //get请求
    return httpRequest.get(url, {
        params
    })
}

export function ajaxPost(url, data, config) {
    return httpRequest.post(url, data, config)
}